package com.micai.springboot.dto;

import com.micai.springboot.base.BaseDto;

import java.util.List;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/10/24 18:01
 */
public class UserDto extends BaseDto {

    private Long organizationId;

    private String userName;

    private String passWord;

    private String salt;

    private String phone;

    private String email;

    private String enable;

    // 扩展字段 //
    private List<RoleDto> roleDtos;

    public Long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Long organizationId) {
        this.organizationId = organizationId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public List<RoleDto> getRoleDtos() {
        return roleDtos;
    }

    public void setRoleDtos(List<RoleDto> roleDtos) {
        this.roleDtos = roleDtos;
    }

    public String getCredentialsSalt(){
        return this.userName + this.salt;
    }

}
